package com.campus.counseling.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;

@Data
@TableName("appointment")
public class Appointment {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long studentId;
    
    @TableField(exist = false)
    private String studentName;
    
    private Long counselorId;
    
    @TableField(exist = false)
    private String counselorName;
    
    @TableField(exist = false)
    private String counselorTitle;
    
    private Long paymentId;
    
    private LocalDateTime appointmentTime;
    private Integer duration;
    @TableField("type")
    private String type;
    private String status;
    private String description;
    private String cancelReason;
    
    @TableLogic
    private Integer deleted;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableField(exist = false)
    private String studentAvatar;
} 